package mango.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class TestClient extends MangoClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		boolean connected = true;
		TestClient client = new TestClient();
		try {
			client.connectToServer(args[0], Integer.parseInt(args[1]));
		} catch (NumberFormatException e) {
		}
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String input;
		try {
			while ((input = in.readLine()) != null) {
				client.pushToServer(input);
			}
		} catch (Exception e) {
		}

	}

}
